package net.ethanma.action;

import java.util.Date;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.conversion.TypeConverter;

public class UserAction extends ActionSupport {
	private static final long serialVersionUID = -182909447870277554L;

	private Integer id;
	private String name;
	private Date createDate;
	
	public Integer getId() {
		return id;
	}
TypeConverter 
	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String save(){
		System.out.println("save方法调用");
		System.out.println(id);
		System.out.println(name);
		System.out.println(createDate);
		return "save";
	}
}
